﻿using System;
using System.IO;
using System.Windows;

namespace TS3ServerManager
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        #region Properties

        public string SettingsFolder
        {
            get { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "TS3ServerManager"); }
        }

        public string ServerListFilePath
        {
            get { return Path.Combine(SettingsFolder, "Serverlist.xml"); }
        }

        #endregion

        #region Public Methods

        public void EnsureSettingsFolderExists()
        {
            if (!Directory.Exists(SettingsFolder))
                Directory.CreateDirectory(SettingsFolder);
        }

        #endregion
    }
}
